home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group92c.txt
/
000091_icon-group-sender _Wed Nov 18 14:40:44 1992.msg
< prev
next >
Wrap
Internet Message Format
|
1993-01-04
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 18 Nov 1992 14:10:13 MST
Date: Wed, 18 Nov 92 14:40:44 EST
From: Paul_Abrahams@MTS.cc.Wayne.edu
To: icon-group@cs.arizona.edu
Message-Id: <529141@MTS.cc.Wayne.edu>
Subject: Second argument to softf
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Thanks to Clint Jeffery for providing the missing link needed to specify
the second argument of sortf as a field name. Applying the "name" function
to a record object of record type R, you can determine the field occupying
the i'th position of the record. Inverting this procedure, you can
determine the position (as an integer) of a field name. Once you've done
that, you have the second argument to sortf that you need.
Clint commented:
<< Folks who don't believe in semi-colon insertion, let me know if you have
trouble reading this. >>
Yes, but a program (Icon or otherwise) with semicolons is also easy to
read. The semicolons don't interfere, at least for me. I certainly agree
that a program is easier to *write* without semicolons. However, as I
said in an earlier post, the Icon treatment of newlines precludes certain
convenient conventions for line continuations.
Paul Abrahams